package com.recharge.wk.mapper;

import com.recharge.wk.domain.TradeOrder;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * Created by qi.cao on 2016/4/21.
 */
public interface ITradeOrderMapper {

    int deleSup(String orderId);

    int updateOrderState(TradeOrder tradeOrder);

    int updateTmState(TradeOrder tradeOrder);

    List<TradeOrder> selectList(@Param("tradeOrder") TradeOrder tradeOrder,
                                @Param("startTime") Date startTime, @Param("endTime") Date endTime,
                                @Param("curr") Integer curr, @Param("pageSize") Integer pageSize );

    int count(@Param("tradeOrder") TradeOrder tradeOrder,
              @Param("startTime") Date startTime, @Param("endTime") Date endTime);

}
